/*
 * ADC_unit_test.c
 *
 * Created: 3/17/2013 4:23:30 PM
 *  Author: Parag
 */ 

#include "Pressure_A.h"

#include <stdio.h>
#include <avr/delay.h>
#include "U0_UART.h"
extern FILE uart_stream;
uint16_t data;
int dataInt;

int main(void)
{
	UARTInit();
	ADCSetup();
	stderr=stdout = stdin = &uart_stream;
    while(1)
    {
		dataInt = data = ADCAquire();
        printf("The Pressure Data is: %d(int) or %X(Hex)\n",dataInt,data);
		_delay_ms(10000);
    }
}

